﻿/**************************************************************************************************
|
| iDocScript - Document Sharing Script
| http://www.idocscript.com
| webmaster@idocscript.com
|
|**************************************************************************************************
|
| By using this software you agree that you have read and acknowledged our End-User License 
| Agreement available at http://www.idocscript.com/eula.html and to be bound by it.
|
| Copyright (c) 2012 iDocScript.com. All rights reserved.
|**************************************************************************************************/

Upgrade Instructions - v2.0.1 to v2.0.2


1. Upload the following file from the upload folder of this package to your server:
- /smarty/libs/plugins/shared.make_timestamp.php



2. Open /include/functions/main.php
Find:
function verify_valid_email($emailtocheck)
{
       $eregicheck = "^([-!#\$%&'*+./0-9=?A-Z^_`a-z{|}~])+@([-!#\$%&'*+/0-9=?A-Z^_`a-z{|}~]+\\.)+[a-zA-Z]{2,4}\$";
       return eregi($eregicheck, $emailtocheck);
}

Replace With:
function verify_valid_email($emailtocheck)
{	
	if(!preg_match("/^[_\.0-9a-zA-Z-]+@([0-9a-zA-Z][0-9a-zA-Z-]+\.)+[a-zA-Z]{2,6}$/i", $emailtocheck))
	{
		return false;
	}
	else
	{
		return true;
	}

}



3. Open /include/lang/french.php
Find:
$lang['538'] = "Merci d'avoir noté!";

Replace With:
$lang['538'] = "Merci!";



4. Run the update.sql file from this folder in your database management tool such as phpMyAdmin